from django.db import models

# Create your models here.


class Student(models.Model):
    student_word = models.CharField(max_length=32)
    student_name = models.CharField(max_length=16)


class Publisher(models.Model):
    name = models.CharField(max_length=32)



class Book(models.Model):
    name = models.CharField(max_length=32)
    publisher = models.ForeignKey(Publisher,on_delete=models.CASCADE)  #级联删除

